export const constantRoute = [
  // 登录页
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/login/index.vue'),
    meta: {
      title: '登录',
      hidden: true,
      icon: '',
    },
  },

  // 应用管理
  {
    path: '/',
    name: 'layout',
    component: () => import('@/Layout/index.vue'),
    redirect: '/home',
    meta: {
      hidden: false,
      title: '应用管理',
      icon: 'Monitor',
    },
    children: [
      {
        path: '/home',
        component: () => import('@/views/home/index.vue'),
        meta: {
          title: '首页',
          hidden: false,
          icon: '',
        },
      },

      {
        path: '/test',
        component: () => import('@/views/system/index.vue'),
        meta: {
          title: '测试页面1',
          hidden: false,
          icon: '',
        },
      },

      {
        path: '/test2',
        component: () => import('@/views/home/index.vue'),
        meta: {
          title: '测试页面2',
          hidden: false,
          icon: '',
        },
      },

      {
        path: '/test3',
        component: () => import('@/views/home/index.vue'),
        meta: {
          title: '测试页面2',
          hidden: false,
          icon: '',
        },
      },
    ],
  },

  {
    path: '/',
    name: 'system',
    component: () => import('@/Layout/index.vue'),
    redirect: '/system',
    meta: {
      title: '系统管理',
      hidden: false,
      icon: 'Setting',
    },
    children: [
      {
        path: '/system',
        name: 'system',
        component: () => import('@/views/system/index.vue'),
        meta: {
          title: '审计管理',
          hidden: false,
          icon: 'PieChart',
        },
      },
    ],
  },

  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/login/index.vue'),
    meta: {
      title: '审计管理',
      hidden: false,
      icon: 'PieChart',
    },
  },

  {
    path: '/404',
    name: '404',
    component: () => import('@/views/404/index.vue'),
    meta: {
      title: '404',
      hidden: true,
    },
  },
]

// 任意路由
export const anyRoute = [
  {
    path: '/:pathMatch(.*)*',
    name: 'any',
    redirect: '/404',
    meta: {
      title: '任意路由',
      hidden: true,
      icon: 'Compass',
    },
  },
]
